<?php

$page_title = "产品发布 - ";
include 'common/autoload.php';
$lvl_limit = array(0, 2, 6, 9);
if(!in_array($_SESSION['dtype'], $lvl_limit)) {
    exit('不合法的身份！');
}
if (!$_SESSION['memberID']){
    exit("<script>window.location='dlogin.html'</script>");
}
$mem = new \pft\Member\MemberAccount($GLOBALS['le']);
//$mid = $_SESSION['dtype']==6 ?
//$chkData = $mem->StatusChk($_SESSION['sid']);
$chkData['status'] = 'ok';
include 'common/header.html';
include 'common/left.html';

if(isset($_SESSION['alliance'])) exit('联盟禁止发布产品');
?>
<link rel="stylesheet" href="css/aliceui.min.css"/>
<link rel="stylesheet" href="css/c_common.css"/>
<link rel="stylesheet" href="css/resetui.css"/>
<link rel="stylesheet" href="css/prod_store.css"/>
    <div class="clay">
        <div class="content">
            <h3 class="mc_title">
                <span class="mctit_1"><span class="mctit_2">发布产品</span></span>
            </h3>
            <?if($chkData['status']=='ok') {?>
             <ol class="ui-ministep step1">
                <li class="ui-ministep-item ui-ministep-active">
                    <span class="ui-ministep-text">产品类型</span>
                </li>
                <li class="ui-ministep-item">
                    <span class="ui-ministep-text">产品信息</span>
                </li>
                <li class="ui-ministep-item">
                    <span class="ui-ministep-text">门票信息</span>
                </li>
            </ol>
            <div class="con_step1">
                <h4>请选择您要添加产品的类型：</h4>
                <ul>
                    <li><a href="prod_edits.html?type=A" class="two"></a></li>
					<li><a href="prod_edits.html?type=B" class="one"></a></li>
                    <li><a href="prod_edits.html?type=C" class="thr"></a></li>
                    <li><a href="product_package.html" class="fiv"></a></li>
                    <?if($access['yd']):?>
                    <li><a href="prod_edits.html?type=G" class="for"></a></li>
                    <?endif;?>
                    <?if($_SESSION['saccount']=='100090' || $_SESSION['saccount']=='124530' ||$_SESSION['saccount']=='123933' || $_SESSION['saccount']=='123757' || $_SESSION['saccount']=='124961' || $_GET['cs']){?>
                    <li><a href="prod_edits.html?type=H" class="six"></a></li>
                    <?}?>
                    <div style="clear:both;"></div>
                </ul>
                <div style="clear:both;"></div>
            </div>
            <?} else {?>
            <div class="ui-tiptext-container ui-tiptext-container-error mt10">
                <p class="ui-tiptext ui-tiptext-error">
                    <i class="ui-tiptext-icon"></i>
                    <?=$chkData['msg']?>
                </p>
                <p>
                    发布产品，需上传相关资质并通过平台审核认证。<br/>
                    <?if(!$access['yd']):?>
                    快速开通，请联系：400-99-22301
                     <?endif;?>
                </p>
            </div>
            <?}?>
        </div>
    </div>
<?include('common/footer.html')?>